﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:vm="clr-namespace:BalanceManagerApp.ViewModel"
  xmlns:vw="clr-namespace:BalanceManagerApp.View"
  >

    <!--
        Описание ViewModel'ей
    -->

    <DataTemplate DataType="{x:Type vm:HomePageViewModel}">
        <vw:HomePageView />
    </DataTemplate>

    <DataTemplate DataType="{x:Type vm:FlowFundsViewModel}">
        <vw:FlowFundsView />
    </DataTemplate>

    <DataTemplate DataType="{x:Type vm:ItemsViewModel}">
        <vw:ItemsView />
    </DataTemplate>

    <!--
        Вспомогательные DataTemplate для биндинга ViewModel
    -->
    
    <DataTemplate x:Key="WorkspaceTemplate">
        <ContentPresenter Content="{Binding}" />
    </DataTemplate>
    
    <!--
        ControlTemplates
    -->

    <!--Template для кнопок категорий на главной панели-->
    <ControlTemplate TargetType="{x:Type Button}" x:Key="LeftPanelButtonTemplate">
        <TextBlock Margin="3,0,0,0" VerticalAlignment="Center" Text="{TemplateBinding Property=Content}" />          
    </ControlTemplate>

</ResourceDictionary>